
Pod::Spec.new do |s|
  s.name         = "VPPublicUntilitis"
  s.version      = "0.4.2"
  s.summary      = "公用宏，公用函数，公用类的私有组件."
  s.description  = <<-DESC
    TODO:公用宏，公用函数，公用类的私有组件
                   DESC
  s.homepage     = "https://git.oschina.net/vernepung/VPPublicUntilitis"
  s.author             = { "vernepung" => "vernepung@hotmail.com" }
  s.source       = { :git => "git@git.oschina.net:vernepung/VPPublicUntilitis.git", :tag => s.version.to_s }
  s.ios.deployment_target = '8.0'

  s.public_header_files = 'VPPublicUntilitis/VPPublicUntilitisHeader.h'
  s.source_files = 'VPPublicUntilitis/VPPublicUntilitisHeader.h'


s.subspec 'CTMediator' do |spec|
spec.source_files = 'VPPublicUntilitis/CTMediator/*.{h,m}'
spec.public_header_files = 'VPPublicUntilitis/CTMediator/*.h'
end

s.subspec 'Fetaures' do |spec|
#spec.source_files = 'VPPublicUntilitis/Fetaures/{Cells,Controllers,Models,Views}/*.{h,m}'
#spec.public_header_files = 'VPPublicUntilitis/Fetaures/{Cells,Controllers,Models,Views}/*.h'
spec.source_files = 'VPPublicUntilitis/Fetaures/{*,**}/*.{h,m}'
spec.public_header_files = 'VPPublicUntilitis/Fetaures/{*,**}/*.h'
        spec.dependency 'MJExtension', '~> 3.0.13'
        spec.dependency 'MBProgressHUD'
        spec.dependency 'Toast'
        spec.dependency 'VPPublicUntilitis/Macro'
    end

    s.subspec 'Helper' do |spec|
        spec.source_files = 'VPPublicUntilitis/Helper/*.{h,m}'
        spec.public_header_files = 'VPPublicUntilitis/Helper/*.h'
        spec.dependency 'OpenUDID'
        spec.dependency 'VPPublicUntilitis/Macro'
        spec.frameworks = 'UIKit','AVFoundation','Photos','UserNotifications','AssetsLibrary'
    end

    s.subspec 'Additions' do |spec|
        spec.source_files = 'VPPublicUntilitis/Additions/**/*.{h,m}'
        spec.public_header_files = 'VPPublicUntilitis/Additions/**/*.h'
    end


    s.subspec 'Macro' do |spec|
        spec.source_files = 'VPPublicUntilitis/Macro/*.{h,m}'
        spec.public_header_files = 'VPPublicUntilitis/Macro/*.h'
    end

    s.subspec 'Download' do |spec|
            spec.source_files = 'VPPublicUntilitis/VPDownloadManager/**/*.{h,m}'
            spec.public_header_files = 'VPPublicUntilitis/VPDownloadManager/**/*.h'
            spec.ios.dependency 'VPPublicUntilitis/Fetaures'
            spec.ios.dependency 'VPPublicUntilitis/Helper'
    end

    s.subspec 'Utility' do |spec|
        spec.source_files = 'VPPublicUntilitis/VPUtility/**/*.{h,m}'
        spec.public_header_files = 'VPPublicUntilitis/VPUtility/**/*.h'
spec.resource  = "VPPublicUntilitis/VPUtility/**/*.{xib,mp3}"
        spec.dependency 'SDWebImage'
    end




  # s.requires_arc = true

  # s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
    s.frameworks = 'UIKit','AVFoundation','Photos','UserNotifications','AssetsLibrary'
    s.dependency 'UIAlertView-Blocks', '~> 1.0'
end
